package org.qpcr.community.device.web.response;

import cn.hutool.json.JSONUtil;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.qpcr.community.device.web.calibration.MessageHeader;
import org.qpcr.community.device.web.calibration.ResponseBody;

import java.time.LocalDateTime;

@Data
@Schema(description = "设备校准响应")
public class CalibrationResponse {
    private MessageHeader header;
    private ResponseBody body;


    public static CalibrationResponse create(){
        CalibrationResponse calibrationResponse = new CalibrationResponse();
        calibrationResponse.setHeader(new MessageHeader());
        calibrationResponse.setBody(new ResponseBody());
        return calibrationResponse;
    }


    public String toJsonString(){
        return JSONUtil.toJsonStr(this);
    }
}